
<div id="actionbar">
    <a href="{:url('manage.unmarket/order',['id'=>$id,'state'=> 0])}" class="button{if $state == 0} button-blue{/if}">已付款</a>
    <a href="{:url('manage.unmarket/order',['id'=>$id,'state'=> 1])}" class="button{if $state == 1} button-blue{/if}">未付款</a>
</div>
<table class="table">
    <thead>
        <tr>   
                <th class="w80 fn-tac">用户</th>
                <th class="w160"></th>
            <th class="w100">姓名</th>
            <th>手机</th>
            <th class="w250">订单号</th>   
            <th class="w100">金额</th>
            <th class="w100">红包大小</th>
            <th class="w140">购买时间</th>
            <th class="w100 fn-tac">状态</th>
            <th class="w90 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td>{$vo.user.nickname}</td>
            <td>{$vo.telname}</td>
            <td>{$vo.telphone}</td>
            <td>{$vo.order_sn}</td>
            <td>￥{$vo.price}</td>
            <td>￥{if $vo.redpack}{$vo.redpack}{else}0.00{/if}</td>
            <td>{$vo.order_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac">{if $vo.state}<span class="badge bg-blue">已付款</span>{else}<span class="badge">未付款</span>{/if}</td>
            <td>
                <a class="button isDel" url="{:url('manage.unmarket/deleteOrder',['id'=>$vo.id])}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base', 'layer','tip',function () {
    $('.isDel').isDel();
    $(".trigger").powerFloat({targetMode: "ajax"});
})
</script>